#ifndef SOUNDPLOT_H
#define SOUNDPLOT_H

#include <qmainwindow.h>
#include "RawSoundPlot.h"

#include <qwt_plot_zoomer.h>
#include <qwt_plot_picker.h>
#include <qwt_plot_panner.h>

class SoundPlot : public QMainWindow
{
	Q_OBJECT

	public:
		static const long maxHeight = 250L;
		static const long maxWidth  = 500L;
		static const long minHeight = 250L;
		static const long minWidth  = 500L;

		SoundPlot(SoundObj *so, long channel = 1, QWidget *parent = 0);
		~SoundPlot();

	private slots:
		void enableZoomMode(bool);
		void rebuildBlocByChannel(int);

	private:
		RawSoundPlot *d_plot;
		QwtPlotZoomer *d_zoomer;
		SoundObj *soundO;
};

#endif // SOUNDPLOT_H
